package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface JpaRepository  extends MongoRepository<Destination,String>{
    List<Destination> findByNameLike(String name);

    List<Destination> findByNameLikeOrderByParentIdDesc(String name);
}
